#pragma once
#include"Agreement.hpp"

class Calor
{
public:
    Result calor(Demd _demand)
    {
        switch(_demand.Oper())
        {
        case '+':
            return {(_demand.X() + _demand.Y()),0};
        case '-':
            return {(_demand.X() - _demand.Y()),0};
        case '*':
            return {(_demand.X() * _demand.Y()),0};
        case '/':
            return {(_demand.X() / _demand.Y()),0};
        }

        return Result();
    }



};